// import Axios from 'axios'
import { axios, baseUrl } from '@/libs/util'

export const ImportDBPerson = formData => {
  return axios.post('api/DBData/ImportDBPerson', formData)
}

export const SearchDBGroup = formData => {
  return axios.post('api/DBData/SearchDBGroup', formData)
}

export const SearchCommodity = () => {
  return axios.post('api/DBData/SearchCommodity')
}

export const SaveCommodity = formData => {
  return axios.post('api/DBData/SaveCommodity', formData)
}

export const DeleteCommodity = id => {
  return axios.delete('api/DBData/DeleteCommodity/'+id)
}

 
export const SearchDBPerson = formData => {
  return axios.post('api/DBData/SearchDBPerson', formData)
}

export const DeleteDBPerson = id => {
  return axios.delete('api/DBData/DeleteDBPerson/'+id)
}

export const GetDBGroupTown =groupid => {
  return axios.get('api/DBData/GetDBGroupTown?groupid='+groupid)
}
export const TransDBPersonGroup = formData => {
  return axios.post('api/DBData/TransDBPersonGroup', formData)
}


export const SearchDBGrouphasPage = formData => {
  return axios.post('api/DBData/SearchDBGrouphasPage', formData)
}


export const DeleteDBGroup = id => {
  return axios.delete('api/DBData/DeleteDBGroup/'+id)
}


export const SavedDBGroup = formData => {
  return axios.post('api/DBData/SavedDBGroup', formData)
}


export const SaveDBPersonRemark = formData => {
  return axios.post('api/DBData/SaveDBPersonRemark', formData)
}

export const SaveDBPerson  = formData => {
  return axios.post('api/DBData/SaveDBPerson', formData)
}

export const SearchSavedDBPerson =formData=> {
  return axios.post('api/DBData/SearchSavedDBPerson',formData)
}
export const GetDBPersonById = id => {
  return axios.get('api/DBData/GetDBPersonById/'+id)
}

export const SearchDBWorkDetail =formData=> {
  return axios.post('api/DBData/SearchDBWorkDetail',formData)
}

export const SearchDBWorkDetailByDate =formData=> {
  return axios.post('api/DBData/SearchDBWorkDetailByDate',formData)
}

export const UpdateImgRotate =formData=> {
  return axios.post('api/DBData/UpdateImgRotate',formData)
}

export const SaveDBGroup =formData=> {
  return axios.post('api/DBData/SaveDBGroup',formData)
}



export const SaveDBFinalResult = formData => {
  return axios.post('api/DBData/SaveDBFinalResult', formData)
}
export const SaveDBFinalResult2 = formData => {
  return axios.post('api/DBData/SaveDBFinalResult2', formData)
}


export const DeleteDBImg = id => {
  return axios.delete('api/DBData/DeleteDBImg/'+id)
}

export const SearchAreaDBGroup = formData=> {
  return axios.post('api/DBData/SearchAreaDBGroup',formData)
}
